<%-- 
    Document   : DeleteProduct
    Created on : Nov 22, 2012, 5:10:37 PM
    Author     : vupttse
--%>

<%@page import="ass.data.ProductDAL"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <%
            String productId = request.getParameter("productId");
            if (productId != null) {
                ProductDAL.deleteProduct(productId);
                response.sendRedirect("ManageProducts.jsp");
            } else {
                response.sendRedirect("ManageProducts.jsp");
            }
        %>
    </body>
</html>
